Any way to determine which object called a method? [Ruby]

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-04-24T03:43:24Z Indexed on 2010/04/24 3:53 UTC
Read the original article Hit count: 272

I'm hoping that Ruby's message-passing infrastructure means there's some clever trick for this...

How do I determine the calling object -- which object called the method I'm currently in?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about messaging